from django.db import models
from utils.model import BaseModel

class Banner(BaseModel):

    title = models.CharField(max_length=32)
    img = models.ImageField(upload_to='banner')
    info = models.CharField(max_length=128)
    order = models.IntegerField()

    class Meta:
        db_table = 'luffy_banner'
        verbose_name_plural = '轮播图表'

    def __str__(self):
        return self.title
